#ifndef __DRV_L2_SCCB_H__
#define __DRV_L2_SCCB_H__

#include "driver_l1.h"
#include "drv_l1_gpio.h"

#define _DRV_L2_SCCB	_DRV_L1_GPIO

typedef struct
{
	GPIO_ENUM		scl_port;
	IO_DRV_LEVEL	scl_drv;
	GPIO_ENUM		sda_port;
	IO_DRV_LEVEL	sda_drv;
	GPIO_ENUM		pwdn_port;
	IO_DRV_LEVEL	pwdn_drv;	// not yet implemented
	INT8U			have_pwdn;
	INT8U			addr_bits;
	INT8U			data_bits;
	INT8U			slave_id;
	INT32U			timeout;	// in ms unit, not yet implemented
	INT32U			clock_rate; // in kHz unit, not yet implemented
} sccb_config_t;

extern INT32S drv_l2_sccb_write(sccb_config_t* pSccb, INT16U addr, INT16U data);
extern INT32S drv_l2_sccb_read(sccb_config_t* pSccb, INT16U addr, INT16U* data);
#endif //DRV_L2_SCCB_H
